import { createRouter, createWebHistory } from "vue-router";
import nProgress from "nprogress";
const routes = [
  {
    path: "/",
    component: () => import("@/views/changeTheme.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

router.beforeEach((from, to, next) => nProgress.start() && next());

router.afterEach(() => nProgress.done());

export default router;
